<html>
<head>
<title>ffavisynth</title>
<link rel="stylesheet" type="text/css" href="../../avisynth.css">
<!--
Automatically generated, don't change:
$Id: ffavisynth.htm,v 1.4 2007/11/21 18:02:03 fizick Exp $ 
-->
</head>
<body>
<h1>ffavisynth</h1>
<h2>Abstract</h2>
<b>author:</b>     Milan Cutka
<br><b>version:</b>       &nbsp;<br>
<b>download:</b>    <a href="http://sourceforge.net/projects/ffdshow-tryout/">http://sourceforge.net/projects/ffdshow-tryout/</a>
(plugin is included in ffdshow package)
<br><b>category:</b>    Misc Plugins
<br><b>requirements:</b>&nbsp;
<ul>
  <li>YV12 &amp; YUY2 &amp; RGB Colorspace</li>
</ul>

<p><b>license:</b> GPL</p>

<hr size=2 width="100%" align=center>

<!-- #EndTemplate -->
<h2>Description</h2>
<p>      ffavisynth - A plugin which lets you directly use ffdshow image processing filters from
AviSynth scripts.</p>
<p>Just install ffdshow (with Avisynth support option checked), and the plugin ffavisynth.dll will be installed in your
avisynth plugin folder.</p>
<p>In ffdshow-20051124.exe and more recent versions, ffavisynth filter uses the
AviSynth C interface, and thus should be loaded using LoadCPlugin (or Load_StdCall_Plugin).
Since 2007-10-30 ffavisynth.dll is loaded automatically by AviSynth (with ffavisynth.avsi).</p>
<h3>Syntax</h3>
<p>video: <code>ffdshow</code> (clip, string <var>&quot;preset&quot;</var>, string <var>&quot;options&quot;</var>)<br>
audio: <code>ffdshowAudio</code> (clip, string <var>&quot;preset&quot;</var>, string <var>&quot;options&quot;</var>)</p>
<h3>PARAMETERS</h3>
<p><var>preset</var> - existing ffdshow preset to be used<br>
<var>options</var> - array of "name=value" pairs separated by commas (without spaces for revisions older 2007-10-30)</p>
<p>Both parameters are optional. If preset is not specified, a new preset called "ffavisynth" is created
temporarily. Options override preset settings. List of allowed options names and values
should be documented once, but for now look at registry key HKEY_CURRENT_USER\Software\GNU\ffdshow\default to get the
list.</p>
<p><b>Examples:</b></p>
<p>Use the current ffdshow settings:</p>
<pre>AviSource(&quot;E:\testi.avi&quot;)
ffdshow(&quot;default&quot;)</pre>
<p>Or create a new preset by hitting the new button (under 'Image settings'), rename it by clicking twice on "default 1" or what the new one is named
and change its settings to your liking, then use</p>
<pre>AviSource(&quot;E:\testi.avi&quot;)
ffdshow(&quot;&lt;name of your new preset&gt;&quot;)</pre>
<p> Try to append this:</p>
<pre>AviSource(&quot;E:\testi.avi&quot;)
ffdshow(options=&quot;isLevels=1,levelsMode=0,levelsGamma=1500&quot;)</pre>
<p>to your script. If it would work, the effect should be very visible.</p>
<p>Another example using a created preset:</p>
<pre>AviSource(&quot;E:\testi.avi&quot;)
# denoise is a created preset:
ffdshow(preset=&quot;denoise&quot;)</pre>
<p>and you can combine both</p>
<pre>AviSource(&quot;E:\testi.avi&quot;)
ffdshow(preset=&quot;denoise&quot;, options=&quot;isLevels=1,levelsMode=0,levelsGamma=1500&quot;)</pre>
<p>which will load preset, modify given values and process video.</p>
<h3>Limitation</h3>
<p>Input and output colorspaces are equal. Even if ffdshow image processing filter chain would produce image with different colorspace, it will be converted to match that on input.</p>
<p><kbd>$Date: 2007/11/21 18:02:03 $</kbd>
</p>
</body>
</html>
